/*****************************************************************
Wowengine - v0.1

File: wen_light.cpp
Creation date: 2009-09-07
*****************************************************************/

/****************************************************************/
#include "wen_light.h"
#include "graphics/wen_render.h"
//----------------------------------------------------------------
using namespace wen;
/****************************************************************/

/****************************/
// Constructor
/****************************/
Light::Light()
:
Entity()
{
	ZeroMemory(&m_kLight, sizeof(m_kLight));

	m_kLight.Type = (D3DLIGHTTYPE)POINT;
	m_kLight.Diffuse.r = 255.0f;
	m_kLight.Diffuse.g = 0.0f;
	m_kLight.Diffuse.b = 0.0f;
	m_kLight.Ambient.r = 0.0f;
	m_kLight.Ambient.g = 0.0f;
	m_kLight.Ambient.b = 0.0f;
	m_kLight.Specular.r = 255.0f;
	m_kLight.Specular.g = 255.0f;
	m_kLight.Specular.b = 255.0f;

	m_kLight.Position.x = 100.0f;
	m_kLight.Position.y = 100.0f;
	m_kLight.Position.z = 100.0f;

	m_kLight.Attenuation0 = 1.0f;
	m_kLight.Range = 1000.0f;
}
/****************************/
// Destructor
/****************************/
Light::~Light()
{
}
/****************************/
// Actualiza
/****************************/
void Light::Update(float fTimeBetweenFrames)
{
	Entity::Update(fTimeBetweenFrames);
}
/****************************/
// Dibuja
/****************************/
void Light::Draw(Render& rkRender) const
{
	Entity::Draw(rkRender);
}
//----------------------------------------------------------------